﻿namespace Zhp.Auth.Model
{
    public class OnlineUserModel
    {
        /// <summary>
        /// jwt编号
        /// </summary>
        public long TokenId { get; set; }

        public long UserId { get; set; }

        public string UserName { get; set; }

        public string NickName { get; set; }
        public List<long> RoleIds { get; set; }

        public string ConnectionId { get; set; }

        public string RequestIp { get; set; }

        public string IpAddress { get; set; }
        public string OperatingSystem { get; set; }
        public string DeviceType { get; set; }
        public string BrowserName { get; set; }
        public string Version { get; set; }

        public DateTime LoginTime { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime AccessExpiresTime { get; set; }

        public DateTime RefreshExpiresTime { get; set; }
    }

    public class IsOnlineInfo
    {
        public bool IsOnline { get; set; }

        public string Message { get; set; }

        public OnlineUserModel CurrentUserInfo { get; set; }
    }


    public class LoginUserModel
    {
        public long TokenId { get; set; }

        public long UserId { get; set; }

        public string UserName { get; set; }

        public string NickName { get; set; }

        public DateTime LoginTime { get; set; }

        public List<long> RoleIds { get; set; }
    }
}
